package com.sidianzhong.sdz.model;

import java.io.Serializable;

/**
 * @author 
 */
public class AppHequipmentgrouprecord implements Serializable {
    private Integer id;

    private String equipmentkey;

    private String ownkey;

    private String value;

    private Integer valuetype;

    private String valuesize;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEquipmentkey() {
        return equipmentkey;
    }

    public void setEquipmentkey(String equipmentkey) {
        this.equipmentkey = equipmentkey;
    }

    public String getOwnkey() {
        return ownkey;
    }

    public void setOwnkey(String ownkey) {
        this.ownkey = ownkey;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getValuetype() {
        return valuetype;
    }

    public void setValuetype(Integer valuetype) {
        this.valuetype = valuetype;
    }

    public String getValuesize() {
        return valuesize;
    }

    public void setValuesize(String valuesize) {
        this.valuesize = valuesize;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppHequipmentgrouprecord other = (AppHequipmentgrouprecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEquipmentkey() == null ? other.getEquipmentkey() == null : this.getEquipmentkey().equals(other.getEquipmentkey()))
            && (this.getOwnkey() == null ? other.getOwnkey() == null : this.getOwnkey().equals(other.getOwnkey()))
            && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
            && (this.getValuetype() == null ? other.getValuetype() == null : this.getValuetype().equals(other.getValuetype()))
            && (this.getValuesize() == null ? other.getValuesize() == null : this.getValuesize().equals(other.getValuesize()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEquipmentkey() == null) ? 0 : getEquipmentkey().hashCode());
        result = prime * result + ((getOwnkey() == null) ? 0 : getOwnkey().hashCode());
        result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
        result = prime * result + ((getValuetype() == null) ? 0 : getValuetype().hashCode());
        result = prime * result + ((getValuesize() == null) ? 0 : getValuesize().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", equipmentkey=").append(equipmentkey);
        sb.append(", ownkey=").append(ownkey);
        sb.append(", value=").append(value);
        sb.append(", valuetype=").append(valuetype);
        sb.append(", valuesize=").append(valuesize);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}